# -*- mode: python ; coding: utf-8 -*-


a = Analysis(
    ['__main__.py'],
    pathex=[],
    binaries=[],
    datas=[('app/scrcpy/scrcpy-server.jar', 'app/scrcpy'),
        ('app/scrcpy/const.py', 'app/scrcpy'),
        ('app/scrcpy/core.py', 'app/scrcpy'),
        ('app/scrcpy/control.py', 'app/scrcpy'),
        ('app/app.py', 'app'),
        ('app/dialog.py', 'app'),
        ('app/editor.py', 'app'),
        ('app/runscript.py', 'app'),
        ('app/scrcpy_view.py', 'app'),
        ('app/script.py', 'app'),
        ('app/utils/uidump.py', 'app/utils/'),
        ('lib/uiautomator2/assets/u2.jar', 'uiautomator2/assets')],
    hiddenimports=[
        'av',
        'cv2',
        'PyQt5.Qsci',
#        'PyQt5.sip',
        'adbutils',
        'pytest',
        'allure', # 非 allure-pytest
        'uiautomator2'
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
    optimize=0,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    [],
    exclude_binaries=True,
    name='__main__',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
coll = COLLECT(
    exe,
    a.binaries,
    a.datas,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='__main__',
)
app = BUNDLE(
    coll,
    name='Autotest_IDE.app',
    icon='icon.ico',
    bundle_identifier=None,
)
